﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace AnesSystem.Models.Model
{
    public class DisplayTimeItem:BaseModel<DisplayTimeItem>
    {
        private PatientVitalSignsModel patientVitalSigns;
        private Thickness margin;
        private int index;
        private string diplayTime;

        public PatientVitalSignsModel PatientVitalSigns
        {
            get
            {
                return patientVitalSigns;
            }

            set
            {
                patientVitalSigns = value;
                RaisePropertyChanged("PatientVitalSigns");
                RaisePropertyChanged("DiplayTime");
                
            }
        }

        public Thickness Margin
        {
            get
            {
                return margin;
            }

            set
            {
                margin = value;
                RaisePropertyChanged("Margin");
            }
        }

        public int Index
        {
            get
            {
                return index;
            }

            set
            {
                index = value;
                RaisePropertyChanged("Index");
            }
        }

        public string DiplayTime
        {
            get
            {
                return patientVitalSigns.CaptureTime.ToString(DateFormat.DATE_FORMAT_STR_HM);
            }

            set
            {
                diplayTime = value;
            }
        }
    }
}
